package homework0306;

import java.io.File;
import java.io.IOException;

public class CreateNewFileDemo {
    public static void main(String[] args) throws IOException {
        for (int i = 1; i <=100; i++) {
            File file=new File("./text"+i+".txt");
            if (!file.exists()){
                file.createNewFile();
            }
        }
        System.out.println("创建完成");
    }
}
